<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--    <div th:utext="${msg} + thymeleaf教程"></div>-->
    <div >[[${blog.newsContent}]]</div>

    <div th:object="${blog}">
        <p th:text="*{newsTitle}"></p>
        <p th:text="*{newsContent}"></p>
        <p th:text="*{createTime}"></p>
    </div>
    <div th:if="${blog.newsStatus}==1">测试</div>
    <div th:switch="${blog.newsStatus}">
        <p th:case="0">可见</p>
        <p th:case="1">不可见</p>
    </div>

</body>
</html>